home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 2000 October / Software of the Month - Ultimate Collection Shareware 277.iso / pc / PROGRAMS / UTILITY / WINLINUX / DATA1.CAB / programs_-_gimp / INCLUDE / GCK / GCKIMAGE.H < prev    next >
C/C++ Source or Header  |  1999-09-17  |  3KB  |  58 lines

  1. /***************************************************************************/
  2. /* GCK - The General Convenience Kit. Generally useful conveniece routines */
  3. /* for GIMP plug-in writers and users of the GDK/GTK libraries.            */
  4. /* Copyright (C) 1996 Tom Bech                                             */
  5. /*                                                                         */
  6. /* This program is free software; you can redistribute it and/or modify    */
  7. /* it under the terms of the GNU General Public License as published by    */
  8. /* the Free Software Foundation; either version 2 of the License, or       */
  9. /* (at your option) any later version.                                     */
  10. /*                                                                         */
  11. /* This program is distributed in the hope that it will be useful,         */
  12. /* but WITHOUT ANY WARRANTY; without even the implied warranty of          */
  13. /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the           */
  14. /* GNU General Public License for more details.                            */
  15. /*                                                                         */
  16. /* You should have received a copy of the GNU General Public License       */
  17. /* along with this program; if not, write to the Free Software             */
  18. /* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,   */
  19. /* USA.                                                                    */
  20. /***************************************************************************/
  21.  
  22. #ifndef __GCKIMAGE_H__
  23. #define _-GCKIMAGE_H__
  24.  
  25. #ifdef __cplusplus
  26. extern "C" {
  27. #endif
  28.  
  29. typedef struct {
  30.   guint width;
  31.   guint height;
  32.   unsigned long *indextab;
  33.   unsigned long *numbytes;
  34.   unsigned long *rowsize;
  35.   guchar *data;
  36. } RGBImage;
  37.  
  38. RGBImage *RGB_image_new(guint width,guint height);
  39.  
  40. void      RGB_image_destroy(RGBImage *image);
  41.  
  42. void      RGB_image_fill(RGBImage *image,guchar red,guchar green,guchar blue);
  43.  
  44. void      RGB_image_draw_rectangle(RGBImage *image,gint filled,gint x,gint y,gint width,
  45.                                    gint height,guchar red,guchar green,guchar blue);
  46.  
  47. void      RGB_image_draw_line(RGBImage *image,int x1,int y1,int x2,int y2,
  48.                               guchar red,guchar green,guchar blue);
  49.  
  50. void      RGB_image_draw_arc(RGBImage *image,gint filled,int x,int y,guint radius,
  51.                              guint angle1,guint angle2,guchar red,guchar green,guchar blue);
  52.  
  53. #ifdef __cplusplus
  54. }
  55. #endif
  56.  
  57. #endif
  58.